/* This file is currently associated to an HTML file of the same name and is drawing content from it.  Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file. */

function DisplayTemplate_f7496318c078401983cd8a7ed7975fb6(ctx) {
    var ms_outHtml = [];
    var cachePreviousTemplateData = ctx['DisplayTemplateData'];
    ctx['DisplayTemplateData'] = new Object();
    DisplayTemplate_f7496318c078401983cd8a7ed7975fb6.DisplayTemplateData = ctx['DisplayTemplateData'];

    ctx['DisplayTemplateData']['TemplateUrl'] = '~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_CleanWithPaging.js';
    ctx['DisplayTemplateData']['TemplateType'] = 'Control';
    ctx['DisplayTemplateData']['TargetControlType'] = ['SearchResults'];
    this.DisplayTemplateData = ctx['DisplayTemplateData'];

    ms_outHtml.push('', ''
    );
    // Don't remove the following line
    ctx.ListDataJSONGroupsKey = "ResultTables";

    // Set the Group Display Template
    ctx.ClientControl.set_groupTemplateId('~sitecollection/_catalogs/masterpage/$clientNameWithoutSpaces$/DisplayTemplates/Group_SearchResults_NoMarkup.js');
    ms_outHtml.push(''
    , '        ', ctx.RenderGroups(ctx), ' '
    , ''
    );
    if (ctx.ClientControl.get_showPaging()) {
        var pagingInfo = ctx.ClientControl.get_pagingInfo();
        if (!$isEmptyArray(pagingInfo)) {
            ms_outHtml.push(''
            , '                    <div class="pagination">'
            , '                        <ul id="Paging" class="pager">'
            );
            for (var i = 0; i < pagingInfo.length; i++) {
                var pl = pagingInfo[i];
                if (!$isNull(pl)) {
                    var imagesUrl = GetThemedImageUrl('searchresultui.png');
                    if (pl.startItem == -1) {
                        var selfLinkId = "SelfLink_" + pl.pageNumber;
                        ms_outHtml.push(''
                        );
                    } else if (pl.pageNumber == -1) {
                        var iconClass = Srch.U.isRTL() ? "ms-srch-pagingNext" : "ms-srch-pagingPrev";
                        ms_outHtml.push(''
                        , '                                    <li id="PagingImageLink">'
                        , '                                        <a id="PageLinkPrev" href="#" title="', $htmlEncode(pl.title), '" onclick="$getClientControl(this).page(', $htmlEncode(pl.startItem), ');return Srch.U.cancelEvent(event);">&lt;</a>'
                        , '                                    </li>'
                        );
                    } else if (pl.pageNumber == -2) {
                        var iconClass = Srch.U.isRTL() ? "ms-srch-pagingPrev" : "ms-srch-pagingNext";
                        ms_outHtml.push(''
                        , '                                    <li id="Li1">'
                        , '                                        <a id="PageLinkNext" href="#" title="', $htmlEncode(pl.title), '" onclick="$getClientControl(this).page(', $htmlEncode(pl.startItem), ');return Srch.U.cancelEvent(event);">&gt;</a>'
                        , '                                    </li>'
                        );
                    } else {
                        var pageLinkId = "PageLink_" + pl.pageNumber;
                        ms_outHtml.push(''
                        );
                    }
                }
            }
            ms_outHtml.push(''
            , '                        </ul>'
            , '                    </div>'
            );
        }
    }
    ms_outHtml.push(''
    , ''
    , '    '
    );

    ctx['DisplayTemplateData'] = cachePreviousTemplateData;
    return ms_outHtml.join('');
}
function RegisterTemplate_f7496318c078401983cd8a7ed7975fb6() {

    if ("undefined" != typeof (Srch) && "undefined" != typeof (Srch.U) && typeof (Srch.U.registerRenderTemplateByName) == "function") {
        Srch.U.registerRenderTemplateByName("Control_SearchResults_CleanWithPaging", DisplayTemplate_f7496318c078401983cd8a7ed7975fb6);
    }

    if ("undefined" != typeof (Srch) && "undefined" != typeof (Srch.U) && typeof (Srch.U.registerRenderTemplateByName) == "function") {
        Srch.U.registerRenderTemplateByName("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_CleanWithPaging.js", DisplayTemplate_f7496318c078401983cd8a7ed7975fb6);
    }
    //
    $includeScript("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_CleanWithPaging.js", "~sitecollection/_catalogs/masterpage/$clientNameWithoutSpaces$/DisplayTemplates/Group_SearchResults_NoMarkup.js");
    //
}
RegisterTemplate_f7496318c078401983cd8a7ed7975fb6();
if (typeof (RegisterModuleInit) == "function" && typeof (Srch.U.replaceUrlTokens) == "function") {
    RegisterModuleInit(Srch.U.replaceUrlTokens("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fControl_SearchResults_CleanWithPaging.js"), RegisterTemplate_f7496318c078401983cd8a7ed7975fb6);
}